﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace GBricks.Tests
{
  [TestClass]
  public sealed class UnitTests
  {
    [TestMethod]
    public void UnitEquality() {
      Assert.IsTrue(Unit.Value.Equals(default(Unit)), "Unit.Value.Equals(default(Unit))");
      Assert.IsTrue(Equals(Unit.Value, default(Unit)), "Equals(Unit.Value, default(Unit))");
      Assert.AreEqual(Unit.Value.GetHashCode(), default(Unit).GetHashCode(), "Unit.Value.GetHashCode() == default(Unit).GetHashCode()");
      Assert.IsTrue(Unit.Value == default(Unit), "Unit.Value == default(Unit)");
      Assert.IsFalse(Unit.Value != default(Unit), "Unit.Value != default(Unit)");
    }
  }
}
